from django.conf.urls import url
from django.urls import path
from apps.areas.views import AreasView,SubAreasView,AddressView,AreasAddView,UpdateDestroyAddressView,DefaultAddressView,UpdateTitleAddressView
urlpatterns = [
    path('areas/',AreasView.as_view()),
    path('areas/<area_id>/',SubAreasView.as_view()),
    path('addresses/create/',AddressView.as_view()),
    path('addresses/',AreasAddView.as_view()),
    path('addresses/<address_id>/',UpdateDestroyAddressView.as_view()),
    path('addresses/<address_id>/default/',DefaultAddressView.as_view()),
    path('addresses/<address_id>/title/',UpdateTitleAddressView.as_view())

]
